<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-CPP: TLocaleInfo类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-CPP
   </div>
   <div id="projectbrief">AWTK CPP API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="class_t_locale_info-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">TLocaleInfo类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a4cf8d05c1ccee70fddb110df6324a9f2"><td class="memItemLeft" align="right" valign="top"><a id="a4cf8d05c1ccee70fddb110df6324a9f2"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TLocaleInfo</b> (locale_info_t *nativeObj)</td></tr>
<tr class="separator:a4cf8d05c1ccee70fddb110df6324a9f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a13127bc364bc2d03ff33fa7cb0024d19"><td class="memItemLeft" align="right" valign="top"><a id="a13127bc364bc2d03ff33fa7cb0024d19"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TLocaleInfo</b> (const locale_info_t *nativeObj)</td></tr>
<tr class="separator:a13127bc364bc2d03ff33fa7cb0024d19"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a21d2ea01811ba1fa06d950ea21f85d12"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_locale_info.html#a21d2ea01811ba1fa06d950ea21f85d12">Tr</a> (const char *text)</td></tr>
<tr class="separator:a21d2ea01811ba1fa06d950ea21f85d12"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afaeb2b7e45217308b920c71c30ca1a0f"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_locale_info.html#afaeb2b7e45217308b920c71c30ca1a0f">Change</a> (const char *language, const char *country)</td></tr>
<tr class="separator:afaeb2b7e45217308b920c71c30ca1a0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae155a74943075b39650ca7aa9bc5a5e7"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_locale_info.html#ae155a74943075b39650ca7aa9bc5a5e7">Off</a> (uint32_t id)</td></tr>
<tr class="separator:ae155a74943075b39650ca7aa9bc5a5e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a107c0c113cd7ce42e63829c3bbd15a5e"><td class="memItemLeft" align="right" valign="top"><a id="a107c0c113cd7ce42e63829c3bbd15a5e"></a>
static <a class="el" href="class_t_locale_info.html">TLocaleInfo</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (locale_info_t *nativeObj)</td></tr>
<tr class="separator:a107c0c113cd7ce42e63829c3bbd15a5e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a61425b2b245e9082350ae0d840a22392"><td class="memItemLeft" align="right" valign="top"><a id="a61425b2b245e9082350ae0d840a22392"></a>
static <a class="el" href="class_t_locale_info.html">TLocaleInfo</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const locale_info_t *nativeObj)</td></tr>
<tr class="separator:a61425b2b245e9082350ae0d840a22392"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3561d15bdd20aa49a4094b5142f8693c"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_t_locale_info.html">TLocaleInfo</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_locale_info.html#a3561d15bdd20aa49a4094b5142f8693c">Instance</a> ()</td></tr>
<tr class="separator:a3561d15bdd20aa49a4094b5142f8693c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a220ea0b0b0c0d6f19dcda102af669c9e"><td class="memItemLeft" align="right" valign="top"><a id="a220ea0b0b0c0d6f19dcda102af669c9e"></a>
locale_info_t *&#160;</td><td class="memItemRight" valign="bottom"><b>nativeObj</b></td></tr>
<tr class="separator:a220ea0b0b0c0d6f19dcda102af669c9e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>本地化信息。提供字符串翻译数据管理，当前语言改变的事件通知等等。 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="afaeb2b7e45217308b920c71c30ca1a0f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afaeb2b7e45217308b920c71c30ca1a0f">&#9670;&nbsp;</a></span>Change()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TLocaleInfo::Change </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>language</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>country</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置当前的国家和语言。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">language</td><td>语言。 </td></tr>
    <tr><td class="paramname">country</td><td>国家或地区。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a3561d15bdd20aa49a4094b5142f8693c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3561d15bdd20aa49a4094b5142f8693c">&#9670;&nbsp;</a></span>Instance()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_t_locale_info.html">TLocaleInfo</a> TLocaleInfo::Instance </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取缺省locale_info。</p>
<dl class="section return"><dt>返回</dt><dd>返回locale_info对象。 </dd></dl>

</div>
</div>
<a id="ae155a74943075b39650ca7aa9bc5a5e7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae155a74943075b39650ca7aa9bc5a5e7">&#9670;&nbsp;</a></span>Off()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TLocaleInfo::Off </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>id</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>注销指定事件的处理函数。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">id</td><td>locale_info_on返回的ID。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a21d2ea01811ba1fa06d950ea21f85d12"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a21d2ea01811ba1fa06d950ea21f85d12">&#9670;&nbsp;</a></span>Tr()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char * TLocaleInfo::Tr </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>翻译字符串。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">text</td><td>待翻译的文本。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回翻译之后的字符串。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a></li>
<li>output/awtk_cpp.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
